﻿using Sage.CloudStorage.Qiniu.Models;

namespace Sage.CloudStorage.Qiniu.Upload
{
    /// <summary>
    /// 批量上传结果类
    /// 包含单个文件在批量上传中的结果信息
    /// </summary>
    public class BatchUploadResult
    {
        /// <summary>
        /// 原始文件路径
        /// </summary>
        public string FilePath { get; set; } = "";

        /// <summary>
        /// 目标文件键名
        /// </summary>
        public string Key { get; set; } = "";

        /// <summary>
        /// 是否上传成功
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 上传结果（成功时）
        /// </summary>
        public CompleteMultipartUploadResponse? Result { get; set; }

        /// <summary>
        /// 错误信息（失败时）
        /// </summary>
        public string? Error { get; set; }

        /// <summary>
        /// 异常对象（失败时）
        /// </summary>
        public Exception? Exception { get; set; }
    }
}
